package interfaz;

import org.uqbar.arena.actions.MessageSend;

import org.uqbar.arena.layout.VerticalLayout;
import org.uqbar.arena.widgets.Button;
import org.uqbar.arena.widgets.Label;
import org.uqbar.arena.widgets.Panel;
import org.uqbar.arena.windows.MainWindow;
import org.uqbar.arena.windows.SimpleWindow;
import org.uqbar.arena.windows.Window;

import tablero.Tablero;

public class VentanaMapa extends SimpleWindow<Tablero>{
	


	public VentanaMapa(Window owner,Tablero model) {
		super(owner, model);
		
	}

			

		@Override
		public void createContents(Panel mainPanel) {
			
			mainPanel.setLayout(new VerticalLayout());

			Label lb = new Label(mainPanel);
			lb.bindValueToProperty(Tablero.TABLEROIMPRESO);
			//TextBox tableroactual  = new TextBox(mainPanel);
			//tableroactual.bindValueToProperty(Tablero.TABLEROIMPRESO);

			Button agregarEsferasRamdom = new Button(mainPanel);
			agregarEsferasRamdom.setCaption("Agregar esferas Random");
			agregarEsferasRamdom.onClick(new MessageSend(this.getModel(), Tablero.RENDERESFERAS));

			//Label kilometros = new Label(mainPanel);
			//kilometros.bindValueToProperty(Conversor.KILOMETROS);
		}
		
		public static void main(String[] args) {
			//new VentanaMapa(null,new Tablero(10,10)).open();
		}



		@Override
		protected void addActions(Panel arg0) {
			// TODO Auto-generated method stub
			
		}



		@Override
		protected void createFormPanel(Panel arg0) {
			// TODO Auto-generated method stub
			
		}
}
